<?
include 'initsession.php';
header('Content-type: image/png');
$code = '';
if (isset($_SESSION['session_security_code']))
{
	$code = $_SESSION['session_security_code'];
}

$im = imagecreate(55, 18);
// white background and blue text
$bg = imagecolorallocate($im, 0, 156, 217);
$color = imagecolorallocate($im, 255, 255, 255);
imagestring($im, 5, 10, 1, $code, $color);
imagepng($im);